package com.example.demo1.pay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户钱包
 * </p>
 *
 * @author gong
 * @since 2023-02-27
 */
@Getter
@Setter
public class Wallet implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 银行电子账号
     */
    private String bankAccount;

    /**
     * 户名
     */
    private String name;

    /**
     * 总资金
     */
    private BigDecimal totalFund;

    /**
     * 可用资金
     */
    private BigDecimal availableFund;

    /**
     * 冻结资金
     */
    private BigDecimal frozenFund;

    /**
     * init：初始化, on: 已开户, off: 已销户, forbidden : 冻结, fail: 开户失败
     */
    private String status;

    /**
     * 交易密码
     */
    private String exchangePwd;

    /**
     * 盐
     */
    private String salt;

    private LocalDateTime createTime;

    private LocalDateTime modifyTime;


}
